package ynu.lcy.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ynu.lcy.entity.CartFoodItem;
import ynu.lcy.entity.Food;

@Repository
public interface ICartFoodItemDao extends JpaRepository<CartFoodItem,Long> {
    CartFoodItem findCartFoodItemByFood(Food food);
    CartFoodItem findCartFoodItemByCartIdAndFood(Long cartId, Food food);
}
